package factory.abstractfactory;

/**
 * @author Feng
 * @date 2019/3/9 19:43
 */
public class MainTest {
    public static void main(String[] args) {
        DeviceFactory deviceFactory = new SinglePlayFactory();
        deviceFactory.createDisplay().setDisplayStyle();
        deviceFactory.createLoadMedias().setDisplayMedia();

        DeviceFactory deviceFactory1 = new MultiPlayFactory();
        deviceFactory1.createDisplay().setDisplayStyle();
        deviceFactory1.createLoadMedias().setDisplayMedia();
    }
}
